package com.hzw.saas.service.rss.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hzw.saas.service.rss.model.Journal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 期刊站点 Mapper 接口
 * </p>
 *
 * @author sonam
 * @since 2021-06-30
 */
@Mapper
public interface JournalMapper extends BaseMapper<Journal> {

    @Select("<script> delete from tb_journal where pid in <foreach item=\"pid\" collection=\"pids\"  open=\"(\" separator=\",\" close=\")\"> #{pid} </foreach> </script>")
    void deleteByIdFromSql(@Param("pids") List<String> pids);

}
